package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jlkf.service.UserMessageService;

@Controller
@RequestMapping("userMessage")
public class UserMessageController {

	@Autowired
	private UserMessageService userMessageService;
	
	@RequestMapping("getMyMessage")
	public  Object getMyMessage(Long uId,Integer pageNo,Integer pageSize){
		return userMessageService.getMyMessage(uId,pageNo,pageSize);
	}
	@RequestMapping("deleteMeaage")
	public Object deleteMeaage(Long id){
		return userMessageService.deleteMeaage(id);
	}
}
